/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objectoriented.encapsulation;

/**
 *
 * @author peng
 */
public class Student {
    
    /*
     * fields declared private 
     * only accessable through
     * getters and setters
     */
    private String firstName;
    private String lastName;
    private String studentID;
    private int age;
    private double GPA;

    //setters
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public void setStudentID(String studentID) {
        this.studentID = studentID;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setGPA(double GPA) {
        this.GPA = GPA;
    }
    
    
    //getters
    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public String getStudentID() {
        return studentID;
    }

    public int getAge() {
        return age;
    }

    public double getGPA() {
        return GPA;
    }
    
}
